import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { SettingsComponent } from './settings/settings.component';
import { ShipAddressComponent } from './ship-address/ship-address.component';

const routes: Routes = [
    { path: 'settings', component: SettingsComponent },
    { path: 'ship-address', component: ShipAddressComponent },
    { path: 'heros', component: ShipAddressComponent },
    { path: '**', redirectTo: 'settings', pathMatch: 'full' }
];

@NgModule({
  imports: [
    RouterModule.forChild(routes)
  ],
  exports: [
    RouterModule
  ]
})
export class SystemRoutingModule { }